class HotelMaster < ActiveRecord::Base
    filterrific(
      available_filters: [
      :with_name
  ]
  )
  # default for will_paginate
  self.per_page = 10

  scope :with_name, lambda { |ref_name|
    return nil  if ref_name.blank?
    where('hotel_master.name like ?', '%' + ref_name.to_s + '%')
  }

end
